var express = require('express');
var app = express();
var bodyParser = require('body-parser');
var rootdir = express.static('./public');
app.use(rootdir);
app.use(bodyParser.urlencoded({ extended: false }));
app.post('/login', (req, res) => {
    var username = req.body.username;
    var password = req.body.password;
    if (username == '991283296@qq.com' && password == 123) {
        res.send('登录成功，早上好');
    } else {
        res.send('登录失败，请核对账户和密码是否正确');
    };
});
app.listen(3340);